#ifndef LIGHT_H
#define LIGHT_H

#include <gtypes/Vector3.h>

#include <QObject>


class Light : QObject
{
   Q_OBJECT
 public:
    friend class RenderArea;
    friend class Renderer;
    
    Light(QObject* parent = 0);
    Light(gtypes::Vector3 pos, float r, float g, float b );
    
public slots:
    void setPosition( const gtypes::Vector3 &position );
    void setRgb( float r, float g, float b );
    
    void setRed( float r );
    void setGreen( float g );
    void setBlue( float b );
    
   protected:
      gtypes::Vector3 m_light_pos;
      float m_r,m_g,m_b;
};


#endif // LIGHT_H
